package com.borya.dao;

import java.util.Map;

public abstract interface BaseDAO {

	String redis_get(String key);
	
	boolean redis_set(String key,String value);

	boolean redis_setNx(String key,String value,int seconds);

	//EXPIRE key seconds
	boolean redis_expire(String key,int seconds);
	
	boolean redis_hset(String key,String field,String value);
	
	String redis_hget(String key,String field);
	
	boolean redis_del(String key);
	
	Map<String,String> redis_hgetAll(String key);
	Long redis_ttl(String key);
	boolean redis_del(String key,String field);
	String redis_lpop(String key);

	Long redis_rpush(String key, String val);

	boolean redis_setNx(String key,String value);

	String redis_hmset(final String key,Map<String,String> field);
}
